import Request from '@/axios/request'

export function getCollections(params) {
  return Request.get('collections', { params })
}

export function createCollection() {
  return Request.get('collections/create')
}

export function storeCollection(data) {
  return Request.post('collections', data)
}

export function updateCollection(id, data) {
  return Request.put(`collections/${id}`, data)
}

export function editCollection(id) {
  return Request.get(`collections/${id}/edit`)
}

export function destroyCollection(id) {
  return Request.delete(`collections/${id}`)
}

export function restoreCollection(id) {
  return Request.put(`collections/restore/${id}`)
}

export function forceDeleteCollection(id) {
  return Request.delete(`collections/forceDelete/${id}`)
}